Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DATAVIZ-2220: Fix multiple subtree tilesets #5

Merged
merged 6 commits into from
Nov 23, 2023

Conversation

Kaapp
Copy link

@Kaapp Kaapp commented Nov 15, 2023

When dealing with tilesets with multiple subtrees there was a bug with globalData being passed by reference along the recursion meaning that when reaching the bottom of the depth-first search, the values would not be reset appropriately when pursuing the next path. This meant that the wrong subtrees would be requested.

Additionally, when requesting tiles from a subtree they would be incorrectly indexed as the global x/y/z coordinates were being incorrectly shifted.

Lastly, when dealing with sparse tilesets, there was an issue causing a large number of failed requests to the base URL of the tileset. Instead, if a tile has no content, do not make a request.

@Kaapp Kaapp self-assigned this Nov 15, 2023
Copy link
Member

@Rennzie Rennzie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Copy link

@justinmanley justinmanley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! it would be great if we could upstream these fixes

@@ -10,12 +10,12 @@ import Long from 'long';
import {Tiles3DLoaderOptions} from '../../../tiles-3d-loader';
import {ImplicitOptions} from '../parse-3d-tile-header';

const QUADTREE_DEVISION_COUNT = 4;
const OCTREE_DEVISION_COUNT = 8;
const QUADTREE_DIVISION_COUNT = 4;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@coveralls
Copy link

Pull Request Test Coverage Report for Build 6972434665

  • 27 of 27 (100.0%) changed or added relevant lines in 2 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.02%) to 67.414%

Files with Coverage Reduction New Missed Lines %
modules/3d-tiles/src/lib/parsers/parse-3d-tile-header.ts 1 93.29%
Totals Coverage Status
Change from base Build 6881570925: 0.02%
Covered Lines: 68536
Relevant Lines: 102893

💛 - Coveralls

@Kaapp Kaapp merged commit ac06ee6 into master Nov 23, 2023
3 checks passed
Kaapp added a commit that referenced this pull request Dec 6, 2023
…ilesets

DATAVIZ-2220: Fix multiple subtree tilesets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants